/**
 * 
 *	翰迪数据
 * Copyright (c) 2013-2018 Handy-data,Inc.All Rights Reserved.
 */
package com.handydata.antifraud.crypt;

import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.Map;

/**
 * 
 * @author guolong
 * @version $Id: AbsCrypto.java, v 0.1 2018年3月8日 下午2:54:26 apple Exp $
 */
@Getter 
@Setter
public abstract class AbsCrypto {

    //支持的报文类型
    private String supportMessageType;
    
    //明文Map
    private Map<String, Object> clearTextMap;
    
    private Object encryptObject;
    //私钥
    private String privateKey;
    //公钥
    private String publicKey;
    
    private String msg;
    
    private String charset = "UTF-8";
    
    /** 
     * @see Object#toString()
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
